/**
 * 
 */
package com.dsteiner.gwt.cafeteriasophia.client.model;

import java.beans.PropertyChangeListener;

import com.dsteiner.gwt.cafeteriasophia.client.domain.Sale;
import com.dsteiner.widgets.client.PropertyChangeCollection;

public class SaleLineModel {
	private PropertyChangeCollection propertyChangeSupport = new PropertyChangeCollection(
			this);

	public void addPropertyChangeListener(String name, PropertyChangeListener listener) {
		propertyChangeSupport.registerPropertyChangeListener(name, listener);
	}
	
	private Sale sale;

	public Sale getSale() {
		return sale;
	}

	public void setSale(Sale sale) {
		Sale oldSale = this.sale;
		this.sale = sale;
		propertyChangeSupport.firePropertyChange("sale", oldSale, sale);
	}
}